package com.ruoyi.xuexiao.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.xuexiao.domain.entity.ZdKz;
import com.ruoyi.xuexiao.domain.vo.KsJbXxHzReturnVo;
import com.ruoyi.xuexiao.service.ZdKzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "获取矿种")
@AllArgsConstructor
@RestController
public class ZdKzController extends BaseController {
    private final ZdKzService zdKzService;

    /**
     * 获取全部矿种
     *
     * @author 郭梓强
     * @since 2024年5月28日8:36:13
     */
    @ApiOperation("获取全部矿种字典")
    @GetMapping("/jgZdKz/selJgZdKz")
    @ApiResponse(code = 200, message = "获取全部矿种", response = KsJbXxHzReturnVo.class)
    public R<List<ZdKz>> selJgZdKz(ZdKz zdKz) {
        return R.ok(zdKzService.selZdKz(zdKz));
    }
}
